import axios from '../utils/http'
export async function getAdminList(page,size){
    const res=await axios.get('/api/userlist',{params:{page,size}})
    if(res.code==200){
        return res.list
    }
    return false
}
export async function getAdminTotal(){
    const res=await axios.get('/api/usercount')
    if(res.code==200){
        return res.list
    }
    return false
}
export async function getAdminByUid(uid){
    const res=await axios.get('/api/userinfo',{params:{uid}});
    if(res.code===200){
        return res.list;
    }
    return false;
}
